<?php
	
	require 'configDB.php';

	$id_pengguna = $_POST['id_siswa'];
	$username = $_POST['user_name'];
	$password = $_POST['password'];
	$role = $_POST['role'];
	
	$query = mysql_query("UPDATE siswa SET user_name='$username', password='$password', role='$role' WHERE NIS='$id_pengguna'");
	
	
	header("Location: ../laporan_pengguna_siswa.php");
?>